package com.diary.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.diary.server.dto.LoginDTO;
import com.diary.server.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where open_id = #{openid}")
    User getByOpenid(String openid);
}
